﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Text;
using System.Collections.Generic;
using System.Data.SqlClient;
using FileConvertPdfSystemDAL;
using FileConvertPdfSystemModel;

namespace FileConvertPdfSystemBLL
{
    public class UserInformation1
    {
        public int Add_UserInformation(UserInformation userinformation)
        {
            FileConvertPdfSystemDAL.UserInformation1 userinfor = new FileConvertPdfSystemDAL.UserInformation1();
            return (userinfor.Add_UserInformation(userinformation));
        }
        public void Update_UserInformation(UserInformation userinformation)
        {
            FileConvertPdfSystemDAL.UserInformation1 userinfor = new FileConvertPdfSystemDAL.UserInformation1();
            userinfor.Update_UserInformation(userinformation);
        }
        public void Delete_UserInformation(int nID)
        {
            FileConvertPdfSystemDAL.UserInformation1 userinfor = new FileConvertPdfSystemDAL.UserInformation1();
            userinfor.Delete_UserInformation(nID);
        }
        public List<UserInformation> Get_UserInformation()
        {
            FileConvertPdfSystemDAL.UserInformation1 userinfor = new FileConvertPdfSystemDAL.UserInformation1();
            return userinfor.Get_UserInformation();
        }
        public UserInformation Get_SingUserInformation(string sUserName)
        {
            FileConvertPdfSystemDAL.UserInformation1 userinfor = new FileConvertPdfSystemDAL.UserInformation1();
            return userinfor.Get_SingUserInformation(sUserName);
        }
        public bool Login_UserInformation(string sUserName)
        {
            FileConvertPdfSystemDAL.UserInformation1 userinfor = new FileConvertPdfSystemDAL.UserInformation1();
            return userinfor.Login_UserInformation(sUserName);
        }


    }
}
